<?php
/**
 * Created by PhpStorm.
 * User: mars
 * Date: 2018/8/31
 * Time: 下午5:09
 */

namespace common\helpers;


class ImgExifHelper {


	/*
	 *
	 * @return []
	 *
	 * */
	public static function getExif($file){

		$exif = exif_read_data($file);

		return array (
			'make' => $exif['Make'],
			'model' => $exif['Model'],
			'exposer' => $exif['ExposureTime'],
			'fnumber' => $exif['FNumber'],
			'flength' => $exif['FocalLength'],
			'iso' => $exif['ISOSpeedRatings']
		);
	}
}



